//
//  Dictionary.swift
//  HuaYun
//
//  Created by enghou on 2018/6/28.
//  Copyright © 2018年 xyxorigation. All rights reserved.
//

func +( left:Dictionary<String,String>, right: Dictionary<String,String>)->Dictionary<String,String>{
    
    var result:Dictionary<String,String> = [:]
    
    for (k,v) in left {
        result.updateValue(v, forKey: k)
    }
    
    for (k,v) in right {
        result.updateValue(v, forKey: k)
    }
    
    return result
}

func +( left:Dictionary<String,Any>, right: Dictionary<String,Any>)->Dictionary<String,Any>{
    
    var result:Dictionary<String,Any> = [:]
    
    for (k,v) in left {
        result.updateValue(v, forKey: k)
    }
    
    for (k,v) in right {
        result.updateValue(v, forKey: k)
    }
    
    return result
}





